package com.example.common.constant;



/**
 * 通用常量信息
 * @author DestinyCc
 */
public class Constants {
    public static class GITHUB{
        public static final String GET_PULL_URL = "https://api.github.com/repos/%s/%s/pulls/%s";

        public static final String GET_COMMITS_URL = "https://api.github.com/repos/%s/%s/pulls/%s/commits";

        public static final String GET_PULL_REQUEST_LIST = "https://api.github.com/repos/%s/%s/pulls";

        public static final String LIST_PULL_REQUESTS_FILES = "https://api.github.com/repos/%s/%s/pulls/%s/files";

        public static final String RAW_FILE = "https://github.com/%s/%s/raw/%s/%s";

        public static final String GITHUB = "github.com";

        public static final String RAW = "raw.githubusercontent.com";

        public static final String RAW_STR = "raw/";
    }


    public static final String DEFAULT_OUTPUT_DIR = "D:/output/";

    public static final String DEFAULT_PROJECT_LOCATION = "D:/projects/";

    public static final String DEFAULT_CLONE_DIR = "D:/clone/";

    public static final String CODE_QUALITY_PROJECT_LOCATION = "D:/code_and_results/";

    public static final String CODE_QUALITY_FOR_DIFF_PROJECT_LOCATION = "D:/code_and_result_for_diff/";

    public static final String CODE_QUALITY_CAL_MSG_NAME = "async:code_quality";

    public static final String CODE_QUALITY_PYTHON_SCRIPT = "python " + CODE_QUALITY_PROJECT_LOCATION + "main.py %s %s";

    public static final String CODE_QUALITY_FOR_DIFF_PYTHON_SCRIPT = "python " + CODE_QUALITY_FOR_DIFF_PROJECT_LOCATION + "main.py %s %s %s";

    public static final String RELIABILITY_CAL_PYTHON_SCRIPT = "python " + CODE_QUALITY_PROJECT_LOCATION + "reliability_calc.py %s %s";

    public static final String DEFAULT_CODE_QUALITY_OUTPUT = CODE_QUALITY_PROJECT_LOCATION + "personal_code_quality.xlsx";

    public static final String GITHUB_PROXY = "https://hub.fastgit.xyz";

    public static class CallbackEvent{
        public static final String CODE_QUALITY_CAL_RES = "code quality calculation finished";
    }
}
